<?
use WID\Test\Matchers as Matchers;

return array(
	'name'=>'toBeGreaterThan', 
	
	'each'=> array(
		'matcher'=>null
	),
	
	'beforeEach'=>function(&$each) {
		$each['matcher'] = new Matchers\toBeGreaterThan();
	}, 
	
	'tests'=>array(
		'match'=>function(&$each) {
			$m = $each['matcher'];
			$this->expect($m->match(2,false,1))->toBeTrue(); // prawdziwy
			$this->expect($m->match(1,true,2))->toBeTrue(); // zanegowny prawdziwy
			$this->expect($m->match(2,true,1))->toBeFalse(); // zanegowany nieprawdziwy
		},
		
		'getInfo'=>function(&$each) {
			$this->expect($each['matcher']->getInfo(1,false,2))->toBe('1 to be greater than 2');
			$this->expect($each['matcher']->getInfo(2,true,1))->toBe('2 not to be greater than 1');
		},
		
		'getName'=>function(&$each) {
			$this->expect($each['matcher']->getName())->toBe('toBeGreaterThan');
		}
		
	)
);
?>